<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Adds any type of data to a movie</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.swfmovie.html">SWFMovie</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swfmovie.addexport.html">SWFMovie::addExport</a></div>
 <div class="up"><a href="class.swfmovie.html">SWFMovie</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="swfmovie.add" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SWFMovie::add</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.3)</p><p class="refpurpose"><span class="refname">SWFMovie::add</span> &mdash; <span class="dc-title">Adds any type of data to a movie</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-swfmovie.add-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>SWFMovie::add</strong></span>
    ( <span class="methodparam"><span class="type">object</span> <code class="parameter">$instance</code></span>
   )</div>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">此函数是<em class="emphasis">实验性</em>的。此函数的表象，包括名称及其相关文档都可能在未来的
PHP 发布版本中未通知就被修改。使用本函数风险自担 。</p></div>
  <p class="para">
   Adds an SWF object <em><code class="parameter">instance</code></em> to the current movie.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-swfmovie.add-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">instance</code></em></dt>

     <dd>

      <p class="para">
       Any type of object instance, like <a href="class.swfshape.html" class="xref">SWFShape</a>,
       <a href="class.swftext.html" class="xref">SWFText</a>, <a href="class.swffont.html" class="xref">SWFFont</a>.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-swfmovie.add-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   For displayable types (shape, text, button, sprite), this returns an 
   <a href="class.swfdisplayitem.html" class="xref">SWFDisplayItem</a>, a handle to the object in a display
   list. Thus, you can add the same shape to a movie multiple 
   times and get separate handles back for each separate instance. 
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-swfmovie.add-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="swfmovie.remove.html" class="function" rel="rdfs-seeAlso">SWFMovie::remove()</a> - Removes the object instance from the display list</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.swfmovie.html">SWFMovie</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swfmovie.addexport.html">SWFMovie::addExport</a></div>
 <div class="up"><a href="class.swfmovie.html">SWFMovie</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
